package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


@Getter
@Setter
public class Spending {
    private Long id;

    //支出时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date time;

    //支出金额
    private BigDecimal paymoney;

    //备注
    private String remark;

    //支出人
    private Employee payMan;

    //经手人
    private Employee handleMan;

    //支出类型
    private String paytype;

    //花费类型
    private String consumptiontype;

    //单号
    private String sn;

    //花费班级
    private Grade grade;

    //审核人
    private Employee auditMan;

    //状态
    private boolean state;

}